<?php

class indexControl extends commonControl {
    function index() {
        $db = M("arc");
        $this->display("index");
    }

    function category() {
        $cat_id = $_GET['cat_id'];
        $db = M("arc");
        $field = $db->find($cat_id);
        //读取推荐
        // $sql ="select * from c8_arc where is_tui=1 limit ".C("list_tui_rows");
        // $this->assign("field",$field);
        $this->display("list");
    }

    //显示内容
    function arc() {
        $arc_id = $_GET['arc_id'];
        $db = M("arc");
        $field = $db->find($arc_id);
        $this->assign("field", $field);
        $this->display();
    }

}